package com.chenjt.jvm.second.one_classDetails;

/**
 * 注释：
 *
 * @author chenjt
 * @date 2025/6/23 9:46
 */
public class IntegerTest {


    public static void main(String[] args) {
        Integer x = 5;
        int y = 5;
        System.out.println(x == y);// true

        Integer i1 = 10;
        Integer i2 = 10;
        // 比较引用地址
        System.out.println(i1 == i2);// true

        Integer i3 = 128;
        Integer i4 = 128;
        // 比较引用地址
        System.out.println(i3 == i4);// false

    }

}
